package com.group5.dao;

import com.group5.pojo.GroupsAndEmployees;
import com.group5.pojo.GroupsAndEmployeesExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface GroupsAndEmployeesMapper {
    /**
     * 这个方法是郝文韬手动添加,给出卖方oid,返回所有的组号.组号不重复.
     * @param oid 卖方oid
     * @return List<Integer> 所有的组号.组号不重复.
     */
    List<Integer> getAllGroupsBySellerOid(int oid);
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int countByExample(GroupsAndEmployeesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int deleteByExample(GroupsAndEmployeesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int deleteByPrimaryKey(@Param("group_number") Integer group_number, @Param("oid") Integer oid, @Param("uid") Integer uid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int insert(GroupsAndEmployees record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int insertSelective(GroupsAndEmployees record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    List<GroupsAndEmployees> selectByExample(GroupsAndEmployeesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    GroupsAndEmployees selectByPrimaryKey(@Param("group_number") Integer group_number, @Param("oid") Integer oid, @Param("uid") Integer uid);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int updateByExampleSelective(@Param("record") GroupsAndEmployees record, @Param("example") GroupsAndEmployeesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int updateByExample(@Param("record") GroupsAndEmployees record, @Param("example") GroupsAndEmployeesExample example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int updateByPrimaryKeySelective(GroupsAndEmployees record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table groups_and_employees
     *
     * @mbggenerated
     */
    int updateByPrimaryKey(GroupsAndEmployees record);
}